<template>
    <div class="bigbox">
        
        <ETable :columns="columns" :loadData="getBlood"
        :isPage="false" :is-search="false" :pageSize="[10, 20, 30]" ref="table">
          <template #buttons>
            <el-form>
                <el-form-item label="老人:">
                    <span></span>
                </el-form-item>
                <el-form-item label="床位:">
                    <span></span>
                </el-form-item>
            </el-form>
          </template>
          <template #operation="{row , del}">
          <el-link type="primary" underline='false' >设置</el-link>
  
          <el-link type="primary" underline='false' class="rig">停止用药</el-link>
        </template>
        
        </ETable>
        
            <el-form>
                <el-form-item >
                    <el-button class="back" @click="backed">返回</el-button>
                </el-form-item>     
            </el-form>
            
        
    </div>
</template>

<script setup lang="ts">
import router from '@/router';
import { getBlood} from '../../apis/medicalcare/blood/blood';
import ETable, { type ColumnType } from '../../components/ETable.vue';
import { reactive} from 'vue';


const backed=()=>{
  router.back()
}
const columns = reactive<ColumnType[]>([
    {
      prop: 'id',
      label: '序号',
      width: '',
    },
    {
      prop: 'addTime',
      label: '药品名称',
      width: '',
    },
    {
      prop: 'addAccountName',
      label: '数量',
      width: '',
    },
    {
      prop: 'elderlyName',
      label: '有效期',
      width: '',
    },
    {
      prop: 'begName',
      label: '剂量',
      width: '',
    },
    {
      prop: 'bloodPressure',
      label: '服法',
      width: '',
    },
    {
      prop: 'pulse',
      label: '服药计划',
      width: '',
    },
    {
      prop: 'pulse',
      label: '开始时间',
      width: '',
    },
    {
      prop: 'pulse',
      label: '结束时间',
      width: '',
    },
    {
      prop: 'operation',
      label: '操作',
      slot: true,
      width: '',
    },
  ])
</script>

<style scoped>
.back{
    margin-left: 50%;
}
.rig{
    margin-left: 20px;
}
</style>